Layer Definition Schema
QUERYFRAGMENT Element
See Also  Send comments on this topic.
Layer Definition Schema : QUERYFRAGMENT Element

Glossary Item Box

Description

Used to define a FIELD-OPERATOR-VALUE combination plus a logical operator to be used with the next query fragment (if present).

Diagram

QUERYFRAGMENT Element

Overview

QUERYFRAGMENT
Used to define a FIELD-OPERATOR-VALUE combination plus a logical operator to be used with the next query fragment (if present).
field required xs:string
The attribute field in the layer that the queryfragment applies to.
fragmentoperator optional Restriction of xs:string
The operator used to link the next query fragment to this one.
operator optional Restriction of xs:string
The comparison operator to apply to the field.
value optional xs:string
The comparison term for the query fragment.

Attributes

NameTypeUseDefaultFixedDescription
fieldxs:stringrequired  The attribute field in the layer that the queryfragment applies to.
fragmentoperatorRestriction of xs:stringoptionalAND The operator used to link the next query fragment to this one.
operatorRestriction of xs:stringoptional= The comparison operator to apply to the field.
valuexs:stringoptional  The comparison term for the query fragment.

Remarks

  • Each QUERYFRAGMENT consists of a FIELD-OPERATOR-VALUE combination plus a logical operator (AND / OR) to be used with the next fragment (if present).

Source

<xs:element name="QUERYFRAGMENT" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:annotation>
    <xs:documentation>Used to define a FIELD-OPERATOR-VALUE combination plus a logical operator to be used with the next query fragment (if present).</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:attribute use="required" name="field" type="xs:string">
      <xs:annotation>
        <xs:documentation>The attribute field in the layer that the queryfragment applies to.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="fragmentoperator" default="AND">
      <xs:annotation>
        <xs:documentation>The operator used to link the next query fragment to this one.</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:enumeration value="AND" />
          <xs:enumeration value="OR" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="operator" default="=">
      <xs:annotation>
        <xs:documentation>The comparison operator to apply to the field.</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:enumeration value="=" />
          <xs:enumeration value="&lt;&gt;" />
          <xs:enumeration value="&lt;" />
          <xs:enumeration value="&lt;=" />
          <xs:enumeration value="&gt;" />
          <xs:enumeration value="&gt;=" />
          <xs:enumeration value="=*" />
          <xs:enumeration value="*=" />
          <xs:enumeration value="*=*" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="value" type="xs:string">
      <xs:annotation>
        <xs:documentation>The comparison term for the query fragment.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
</xs:element>

See Also

© 2013 All Rights Reserved.